package cn.wolfcode.cms.service;

import cn.wolfcode.cms.domain.Role;
import cn.wolfcode.cms.query.QueryObject;
import cn.wolfcode.cms.util.PageResult;

import java.util.List;

public interface IRoleService {
    void delete(Long id);

    void save(Role role);

    void update(Role role);

    Role selectByPrimaryKey(Long id);

    List<Role> selectAll();

    PageResult query(QueryObject qo);

    List<Long> getRoleIdsByEmployeeId(Long id);

    //通过员工id查询对应的角色表达式
    List<String> getRoleSnByEmpId(Long id);
}
